package com.feijiang.service;

import com.feijiang.entity.ExpeRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feijiang.util.MyPage;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2021-12-28
 */
public interface IExpeRecordService extends IService<ExpeRecord> {
  boolean add(ExpeRecord expeRecord);

  boolean deleteById(int id);

  boolean edit(ExpeRecord expeRecord);

  MyPage queryByPage(int pageSize, int pageNum, int expeId);

  MyPage listAllByPage(int pageSize, int pageNum);

  /**
   * 根据实验id，删除实验记录
   * @param exprId
   * @return
   */
  int deleteByExprId(int exprId);
}
